package com.ruoyi.pet.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 费用记录对象 pet_finance
 * 
 * @author 木有枝
 * @date 2025-04-13
 */
public class PetFinance extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 费用记录唯一ID */
    private Long financeId;

    /** 关联的诊疗记录ID（外键） */
    @Excel(name = "关联的诊疗记录ID", readConverterExp = "外=键")
    private Long recordId;

    /** 费用金额 */
    @Excel(name = "费用金额")
    private BigDecimal amount;

    /** 费用类型 */
    @Excel(name = "费用类型")
    private String type;

    /** 支付时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "支付时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date paymentTime;

    public void setFinanceId(Long financeId) 
    {
        this.financeId = financeId;
    }

    public Long getFinanceId() 
    {
        return financeId;
    }

    public void setRecordId(Long recordId) 
    {
        this.recordId = recordId;
    }

    public Long getRecordId() 
    {
        return recordId;
    }

    public void setAmount(BigDecimal amount) 
    {
        this.amount = amount;
    }

    public BigDecimal getAmount() 
    {
        return amount;
    }

    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }

    public void setPaymentTime(Date paymentTime) 
    {
        this.paymentTime = paymentTime;
    }

    public Date getPaymentTime() 
    {
        return paymentTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("financeId", getFinanceId())
            .append("recordId", getRecordId())
            .append("amount", getAmount())
            .append("type", getType())
            .append("paymentTime", getPaymentTime())
            .toString();
    }
}
